/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_Studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#pragma once

#include "节点/节点.h"
#include "MBT_Engine.h"
#include "Context/当前默认操作数据.h"





void f_NodeCtx_物理模拟初始化();
void f_NodeCtx_物理模拟销毁();


bool f_NodeCtx_更新();
bool f_NodeCtx_停止更新();
void f_NodeCtx_开始模拟计算();
void f_NodeCtx_结束模拟计算();
bool f_NodeCtx_等待计算完成(uint32 等待时间 = 100);


void f_NodeCtx_线程入栈(void* 线程函数, void* 线程参数);
bool f_NodeCtx_物理模拟线程入栈(S_Physics* phy);
//bool f_NodeCtx_物理模拟线程入栈(S_Physics* phy);

bool f_NodeCtx_物理模拟线程入栈(C_节点基类* node);

int32 f_NodeCtx_get模拟步数();
void f_NodeCtx_stop模拟步数();
void f_NodeCtx_start模拟步数();







